package com.xoa.service.workflow.flowModelAssociationSet;

import com.xoa.model.workflow.FlowRelation;
import com.xoa.util.ToJson;

import java.util.List;
import java.util.Map;

/**
 * 流程模块关联应用设置service层
 * 王禹萌
 * 2018-08-20
 */
public interface FlowAssociationSetService {
    // ------wym
    //流程模块关联应用设置新建
    public ToJson<FlowRelation> newFlowModelAssociationSet(Integer flowRefNo, Integer flowId, String  flowRelName, Integer  relationType, String  relationFlowId, Integer relationStatus, Integer  flowRange, String  timeRange, Integer  dataDirection, String flowRelDesc, String mapping, String  mappingDesc);

    //查询流程关联应用设置
    public ToJson<FlowRelation> queryFlowModelAssociationSet(Integer pageSize, Integer page, Boolean useFlag,Integer flowId);
    //编辑流程关联应用设置
    public ToJson<FlowRelation>  editFlowModelAssociationSet(Integer flowRelId,Integer flowRefNo, Integer flowId, String  flowRelName, Integer  relationType, String  relationFlowId, Integer relationStatus, Integer  flowRange, String  timeRange, Integer  dataDirection, String flowRelDesc, String mapping, String  mappingDesc);

    //删除流程关联应用设置
    public ToJson<FlowRelation> deleteFlowModelAssociationSet(Integer id);
    //查询数据库表字段
    public ToJson<FlowRelation> queryModelAssociationField(String tableName);
    //查询流程关联符合条件的流程
    public ToJson<Map<String,Object>> queryFlowAssociationFlowRunPrcs(Integer flowId,String type);


    List<FlowRelation> queryFlowAssociationSet(Integer flowId);


    ToJson<FlowRelation> newModelAssociationSet(Integer flowId, Integer relationType,String relationFlowId);

    ToJson getFlowRunInfo(Integer flowId, Integer runId,Integer relationType,String printModel,String attributesStr);
}
